package com.chinasofti.manager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.chinasofti.dao.PerformanceRepository;
import com.chinasofti.manager.service.EmpPerformanceService;
import com.chinasofti.model.Performance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.LinkedList;
import java.util.List;

/**
 * Creator: <br>
 * Date: <br>
 * Description: <br>
 */
@Service
@Component
public class EmpPerformanceServiceImpl implements EmpPerformanceService {
    @Autowired
    private PerformanceRepository performanceRepository;

    @Override
    public List<Performance> queryPerformanceList(String name) {
        List<Performance> performances = new LinkedList<>();
        Performance performance = performanceRepository.findByName(name);
        performances.add(performance);
        return performances;
    }

}
